<html>
  <head>

    <link rel="StyleSheet" href="css/styles.css" type="text/css" />

    <script src="js/prototype.js" type="text/javascript"></script>
    <script src="js/rico.js" type="text/javascript"></script>
    <script src="js/jscript.math.js" type="text/javascript"></script>
    <script src="js/Mode.js" type="text/javascript"></script>
    <script src="js/Classloader.js" type="text/javascript"></script>
    <script src="js/CalcTron.js" type="text/javascript"></script>
    <script>
      var calcTron = new CalcTron();
    </script>

  </head>

  <body onLoad="calcTron.init();">

    <div id="divMode" class="cssDivMode">
      <br/>
      <center>
        Select mode here
        <br/><br/>
        <input type="button" value="Standard"
          onclick="calcTron.setMode('Standard');"></input>
        <br/>
        <input type="button" value="BaseCalc"
          onclick="calcTron.setMode('BaseCalc');"></input>
      </center>
    </div>

    <center>

      <img src="img/CalcTron.gif" vspace="5"></img>
      <br/>
      <img src="img/tagline.gif" vspace="5"></img>

      <div id="mainContainer" class="cssCalculatorOuter">
        <table cellpadding="2" cellspacing="2" border="1" align="center">
          <tr>
            <td nowrap="nowrap" colspan="10" align="right" valign="middle">
              <div style="height:16px;" id="divResults"></div>
            </td>
          </tr>
          <tr>
            <td nowrap="nowrap" colspan="2" align="center" valign="middle"><input type="button" class="cssInputCommandButton" id="commandButton0" onclick="calcTron.currentMode.commandButton0();"></input></td>
            <td nowrap="nowrap" colspan="2" align="center" valign="middle"><input type="button" class="cssInputCommandButton" id="commandButton1" onclick="calcTron.currentMode.commandButton1();"></input></td>
            <td nowrap="nowrap" colspan="2" align="center" valign="middle"><input type="button" class="cssInputCommandButton" id="commandButton2" onclick="calcTron.currentMode.commandButton2();"></input></td>
            <td nowrap="nowrap" colspan="2" align="center" valign="middle"><input type="button" class="cssInputCommandButton" id="commandButton3" onclick="calcTron.currentMode.commandButton3();"></input></td>
            <td nowrap="nowrap" colspan="2" align="center" valign="middle"><input type="button" class="cssInputCommandButton" id="commandButton4" onclick="calcTron.currentMode.commandButton4();"></input></td>
          </tr>
          <tr>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button0_0" onclick="calcTron.currentMode.button0_0();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button0_1" onclick="calcTron.currentMode.button0_1();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button0_2" onclick="calcTron.currentMode.button0_2();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button0_3" onclick="calcTron.currentMode.button0_3();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button0_4" onclick="calcTron.currentMode.button0_4();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button0_5" onclick="calcTron.currentMode.button0_5();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button0_6" onclick="calcTron.currentMode.button0_6();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button0_7" onclick="calcTron.currentMode.button0_7();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button0_8" onclick="calcTron.currentMode.button0_8();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button0_9" onclick="calcTron.currentMode.button0_9();"></input></td>
          </tr>
          <tr>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button1_0" onclick="calcTron.currentMode.button1_0();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button1_1" onclick="calcTron.currentMode.button1_1();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button1_2" onclick="calcTron.currentMode.button1_2();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button1_3" onclick="calcTron.currentMode.button1_3();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button1_4" onclick="calcTron.currentMode.button1_4();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button1_5" onclick="calcTron.currentMode.button1_5();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button1_6" onclick="calcTron.currentMode.button1_6();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button1_7" onclick="calcTron.currentMode.button1_7();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button1_8" onclick="calcTron.currentMode.button1_8();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button1_9" onclick="calcTron.currentMode.button1_9();"></input></td>
          </tr>
          <tr>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button2_0" onclick="calcTron.currentMode.button2_0();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button2_1" onclick="calcTron.currentMode.button2_1();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button2_2" onclick="calcTron.currentMode.button2_2();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button2_3" onclick="calcTron.currentMode.button2_3();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button2_4" onclick="calcTron.currentMode.button2_4();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button2_5" onclick="calcTron.currentMode.button2_5();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button2_6" onclick="calcTron.currentMode.button2_6();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button2_7" onclick="calcTron.currentMode.button2_7();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button2_8" onclick="calcTron.currentMode.button2_8();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button2_9" onclick="calcTron.currentMode.button2_9();"></input></td>
          </tr>
          <tr>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button3_0" onclick="calcTron.currentMode.button3_0();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button3_1" onclick="calcTron.currentMode.button3_1();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button3_2" onclick="calcTron.currentMode.button3_2();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button3_3" onclick="calcTron.currentMode.button3_3();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button3_4" onclick="calcTron.currentMode.button3_4();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button3_5" onclick="calcTron.currentMode.button3_5();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button3_6" onclick="calcTron.currentMode.button3_6();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button3_7" onclick="calcTron.currentMode.button3_7();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button3_8" onclick="calcTron.currentMode.button3_8();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button3_9" onclick="calcTron.currentMode.button3_9();"></input></td>
          </tr>
          <tr>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button4_0" onclick="calcTron.currentMode.button4_0();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button4_1" onclick="calcTron.currentMode.button4_1();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button4_2" onclick="calcTron.currentMode.button4_2();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button4_3" onclick="calcTron.currentMode.button4_3();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button4_4" onclick="calcTron.currentMode.button4_4();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button4_5" onclick="calcTron.currentMode.button4_5();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button4_6" onclick="calcTron.currentMode.button4_6();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button4_7" onclick="calcTron.currentMode.button4_7();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button4_8" onclick="calcTron.currentMode.button4_8();"></input></td>
            <td nowrap="nowrap" align="center" valign="middle"><input type="button" class="cssInputButton" id="button4_9" onclick="calcTron.currentMode.button4_9();"></input></td>
          </tr>
          <tr>
            <td nowrap="nowrap" colspan="2" align="center" valign="middle"><input type="button" class="cssInputCommandButton" id="commandButton5" onclick="calcTron.currentMode.commandButton5();"></input></td>
            <td nowrap="nowrap" colspan="2" align="center" valign="middle"><input type="button" class="cssInputCommandButton" id="commandButton6" onclick="calcTron.currentMode.commandButton6();"></input></td>
            <td nowrap="nowrap" colspan="2" align="center" valign="middle"><input type="button" class="cssInputCommandButton" id="commandButton7" onclick="calcTron.currentMode.commandButton7();"></input></td>
            <td nowrap="nowrap" colspan="2" align="center" valign="middle"><input type="button" class="cssInputCommandButton" id="commandButton8" onclick="calcTron.currentMode.commandButton8();"></input></td>
            <td nowrap="nowrap" colspan="2" align="center" valign="middle"><input type="button" class="cssInputCommandButton" style="display:block;" value="Mode" onclick="calcTron.changeModePopup();"></input></td>
          </tr>
          <tr>
            <td nowrap="nowrap" colspan="10" align="center" valign="middle">
              <div style="height:16px;" id="divInfo"></div>
            </td>
          </tr>
        </table>
      </div>
    </center>

  </body>

</html>
